 
package com.xbongbong.sys.domain.entity;

import com.xbongbong.paas.toolbox.util.DateUtil;
import com.xbongbong.paas.enums.DelEnum;
import com.xbongbong.paas.toolbox.wrap.Entity;
import lombok.ToString;

/**
 * UserDepartmentEntity
 *
 * @author GuoJun.HU
 * @since V1.0
 * @date 2019/2/19 11:08
 */
@ToString
public class UserDepartmentEntity extends Entity {

	/** Comment for <code>serialVersionUID</code> */
	private static final long serialVersionUID = 2052323641924860912L;

	//========== properties ==========

    /**公司ID*/
	private String corpid;
    /**员工在企业内的UserID，企业用来唯一标识用户的字段。*/
	private String userId;
    /**部门id*/
	private Long departmentId;
    /**在本部门中的排序*/
	private Long sort;
    /**是否是该部门主管*/
	private Integer isLeader;
    /**添加时间*/
	private Integer addTime;
    /**更新时间*/
	private Integer updateTime;
    /**删除标记*/
	private Integer del;

	
	public UserDepartmentEntity() {
		int now = DateUtil.getInt();
		this.addTime = now;
		this.updateTime = now;
		this.del = DelEnum.NORMAL.getDel();
	}
	
    //========== getters and setters ==========
    
	public String getCorpid() {
		return corpid;
	}
	
	public void setCorpid(String corpid) {
		this.corpid = corpid;
	}
	public String getUserId() {
		return userId;
	}
	
	public void setUserId(String userId) {
		this.userId = userId;
	}
	public Long getDepartmentId() {
		return departmentId;
	}
	
	public void setDepartmentId(Long departmentId) {
		this.departmentId = departmentId;
	}
	public Long getSort() {
		return sort;
	}
	
	public void setSort(Long sort) {
		this.sort = sort;
	}
	public Integer getIsLeader() {
		return isLeader;
	}
	
	public void setIsLeader(Integer isLeader) {
		this.isLeader = isLeader;
	}
	public Integer getAddTime() {
		return addTime;
	}
	
	public void setAddTime(Integer addTime) {
		this.addTime = addTime;
	}
	public Integer getUpdateTime() {
		return updateTime;
	}
	
	public void setUpdateTime(Integer updateTime) {
		this.updateTime = updateTime;
	}
	public Integer getDel() {
		return del;
	}
	
	public void setDel(Integer del) {
		this.del = del;
	}
}

